package com.lrr.entity;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Worksheet {

	private Integer id;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date sdate;
	
	private String odd;
	
	private Integer jobnum;
	
	private String name;
	
	private String gnum;
	
	private String gname;
	
	private String model;
	
	private String specification;
	
	private Double price;
	
	private Integer num;
	
	private Double money;
	
	private String comment;
	
	private String d1;
	
	private String d2;

	public String getD1() {
		return d1;
	}

	public void setD1(String d1) {
		this.d1 = d1;
	}

	public String getD2() {
		return d2;
	}

	public void setD2(String d2) {
		this.d2 = d2;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getSdate() {
		return sdate;
	}

	public void setSdate(Date sdate) {
		this.sdate = sdate;
	}

	public String getOdd() {
		return odd;
	}

	public void setOdd(String odd) {
		this.odd = odd;
	}

	public Integer getJobnum() {
		return jobnum;
	}

	public void setJobnum(Integer jobnum) {
		this.jobnum = jobnum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGnum() {
		return gnum;
	}

	public void setGnum(String gnum) {
		this.gnum = gnum;
	}

	public String getGname() {
		return gname;
	}

	public void setGname(String gname) {
		this.gname = gname;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}


	@Override
	public String toString() {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
		String sDate = "";
		if (sdate!=null){
			sDate = sdf.format(sdate);
		}
		return "Worksheet [id=" + id + ", sdate=" + sDate + ", odd=" + odd + ", jobnum=" + jobnum + ", name=" + name
				+ ", gnum=" + gnum + ", gname=" + gname + ", model=" + model + ", specification=" + specification
				+ ", price=" + price + ", num=" + num + ", money=" + money + ", comment=" + comment + "]";
	}

	
}
